package com.umeng.common.net;

import android.app.ActivityManager;
import android.app.ActivityManager.RunningAppProcessInfo;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.res.Resources;
import android.os.Bundle;
import android.os.Debug;
import android.os.Environment;
import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
import android.os.Messenger;
import android.widget.RemoteViews;
import android.widget.Toast;
import com.umeng.common.Log;
import com.umeng.common.a.a;
import java.io.File;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.Set;

public class DownloadingService extends Service
{
  static final int a = 3;
  static final int b = 4;
  static final int c = 5;
  static final int d = 0;
  static final int e = 1;
  static final int f = 100;
  static final String g = "filename";
  public static boolean h = 0;
  private static final String j = DownloadingService.class.getName();
  private static final int l = 3;
  private static final long p = 8000L;
  private static Map<a.a, Messenger> q;
  private static Map<Integer, d> r;
  private static Boolean t;
  final Messenger i = new Messenger(new c());
  private NotificationManager k;
  private Context m;
  private Handler n;
  private a o;
  private BroadcastReceiver s;

  static
  {
    h = false;
    q = new HashMap();
    r = new HashMap();
    t = Boolean.valueOf(false);
  }

  public static int a(a.a parama)
  {
    return Math.abs((int)((parama.b.hashCode() >> 2) + (parama.c.hashCode() >> 3) + System.currentTimeMillis()));
  }

  private Notification a(a.a parama, int paramInt1, int paramInt2)
  {
    Context localContext = getApplicationContext();
    Notification localNotification = new Notification(17301633, "正在下载应用", 1L);
    RemoteViews localRemoteViews = new RemoteViews(localContext.getPackageName(), com.umeng.common.a.b.a(localContext));
    localRemoteViews.setProgressBar(a.c(localContext), 100, paramInt2, false);
    localRemoteViews.setTextViewText(a.b(localContext), paramInt2 + "%");
    localRemoteViews.setTextViewText(a.d(localContext), localContext.getResources().getString(com.umeng.common.a.c.g(localContext.getApplicationContext())) + parama.b);
    localRemoteViews.setTextViewText(a.a(localContext), "");
    localRemoteViews.setImageViewResource(a.e(localContext), 17301633);
    localNotification.contentView = localRemoteViews;
    localNotification.contentIntent = PendingIntent.getActivity(localContext, 0, new Intent(), 134217728);
    if (parama.e)
    {
      localNotification.flags = 2;
      PendingIntent localPendingIntent1 = l.b(getApplicationContext(), l.a(paramInt1, "continue"));
      localRemoteViews.setOnClickPendingIntent(a.f(localContext), localPendingIntent1);
      localRemoteViews.setViewVisibility(a.f(localContext), 0);
      b(localNotification, paramInt1);
      PendingIntent localPendingIntent2 = l.b(getApplicationContext(), l.a(paramInt1, "cancel"));
      localRemoteViews.setViewVisibility(a.h(localContext), 0);
      localRemoteViews.setOnClickPendingIntent(a.h(localContext), localPendingIntent2);
      return localNotification;
    }
    localNotification.flags = 16;
    localRemoteViews.setViewVisibility(a.f(localContext), 8);
    localRemoteViews.setViewVisibility(a.h(localContext), 8);
    return localNotification;
  }

  private void a(int paramInt)
  {
    d locald = (d)r.get(Integer.valueOf(paramInt));
    Log.c(j, "download service clear cache " + locald.e.b);
    if (locald.a != null)
      locald.a.a(2);
    this.k.cancel(locald.c);
    if (q.containsKey(locald.e))
      q.remove(locald.e);
    locald.b();
    e();
  }

  private void a(Notification paramNotification, int paramInt)
  {
    int i1 = a.f(this.m);
    paramNotification.contentView.setTextViewText(i1, this.m.getResources().getString(com.umeng.common.a.c.e(this.m.getApplicationContext())));
    paramNotification.contentView.setInt(i1, "setBackgroundResource", com.umeng.common.c.a(this.m).c("umeng_common_gradient_green"));
    this.k.notify(paramInt, paramNotification);
  }

  private void a(a.a parama, long paramLong1, long paramLong2, long paramLong3)
  {
    if (parama.d == null)
      return;
    HashMap localHashMap = new HashMap();
    localHashMap.put("dsize", String.valueOf(paramLong1));
    localHashMap.put("dtime", com.umeng.common.b.g.a().split(" ")[1]);
    boolean bool = paramLong2 < 0L;
    float f1 = 0.0F;
    if (bool)
      f1 = (float)paramLong1 / (float)paramLong2;
    localHashMap.put("dpcent", String.valueOf((int)(f1 * 100.0F)));
    localHashMap.put("ptimes", String.valueOf(paramLong3));
    b(localHashMap, false, parama.d);
  }

  // ERROR //
  private boolean a(Context paramContext, Intent paramIntent)
  {
    // Byte code:
    //   0: aload_2
    //   1: invokevirtual 382	android/content/Intent:getExtras	()Landroid/os/Bundle;
    //   4: ldc_w 384
    //   7: invokevirtual 389	android/os/Bundle:getString	(Ljava/lang/String;)Ljava/lang/String;
    //   10: ldc_w 391
    //   13: invokevirtual 363	java/lang/String:split	(Ljava/lang/String;)[Ljava/lang/String;
    //   16: astore 4
    //   18: aload 4
    //   20: iconst_0
    //   21: aaload
    //   22: invokestatic 394	java/lang/Integer:parseInt	(Ljava/lang/String;)I
    //   25: istore 5
    //   27: aload 4
    //   29: iconst_1
    //   30: aaload
    //   31: invokevirtual 397	java/lang/String:trim	()Ljava/lang/String;
    //   34: astore 6
    //   36: iload 5
    //   38: ifeq +302 -> 340
    //   41: aload 6
    //   43: invokestatic 403	android/text/TextUtils:isEmpty	(Ljava/lang/CharSequence;)Z
    //   46: ifne +294 -> 340
    //   49: getstatic 69	com/umeng/common/net/DownloadingService:r	Ljava/util/Map;
    //   52: iload 5
    //   54: invokestatic 263	java/lang/Integer:valueOf	(I)Ljava/lang/Integer;
    //   57: invokeinterface 300 2 0
    //   62: ifeq +278 -> 340
    //   65: getstatic 69	com/umeng/common/net/DownloadingService:r	Ljava/util/Map;
    //   68: iload 5
    //   70: invokestatic 263	java/lang/Integer:valueOf	(I)Ljava/lang/Integer;
    //   73: invokeinterface 269 2 0
    //   78: checkcast 271	com/umeng/common/net/DownloadingService$d
    //   81: astore 7
    //   83: aload 7
    //   85: getfield 284	com/umeng/common/net/DownloadingService$d:a	Lcom/umeng/common/net/DownloadingService$b;
    //   88: astore 8
    //   90: ldc 230
    //   92: aload 6
    //   94: invokevirtual 406	java/lang/String:equals	(Ljava/lang/Object;)Z
    //   97: ifeq +144 -> 241
    //   100: aload 8
    //   102: ifnonnull +105 -> 207
    //   105: getstatic 58	com/umeng/common/net/DownloadingService:j	Ljava/lang/String;
    //   108: ldc_w 408
    //   111: invokestatic 281	com/umeng/common/Log:c	(Ljava/lang/String;Ljava/lang/String;)V
    //   114: aload_1
    //   115: ldc_w 410
    //   118: invokestatic 415	com/umeng/common/b:a	(Landroid/content/Context;Ljava/lang/String;)Z
    //   121: ifeq +34 -> 155
    //   124: aload_1
    //   125: invokestatic 417	com/umeng/common/b:m	(Landroid/content/Context;)Z
    //   128: ifne +27 -> 155
    //   131: aload_1
    //   132: aload_1
    //   133: invokevirtual 183	android/content/Context:getResources	()Landroid/content/res/Resources;
    //   136: aload_1
    //   137: invokevirtual 184	android/content/Context:getApplicationContext	()Landroid/content/Context;
    //   140: invokestatic 418	com/umeng/common/a/c:a	(Landroid/content/Context;)I
    //   143: invokevirtual 193	android/content/res/Resources:getString	(I)Ljava/lang/String;
    //   146: iconst_1
    //   147: invokestatic 424	android/widget/Toast:makeText	(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
    //   150: invokevirtual 427	android/widget/Toast:show	()V
    //   153: iconst_0
    //   154: ireturn
    //   155: new 286	com/umeng/common/net/DownloadingService$b
    //   158: dup
    //   159: aload_0
    //   160: aload_1
    //   161: aload 7
    //   163: getfield 276	com/umeng/common/net/DownloadingService$d:e	Lcom/umeng/common/net/a$a;
    //   166: iload 5
    //   168: aload 7
    //   170: getfield 429	com/umeng/common/net/DownloadingService$d:d	I
    //   173: aload_0
    //   174: getfield 431	com/umeng/common/net/DownloadingService:o	Lcom/umeng/common/net/DownloadingService$a;
    //   177: invokespecial 434	com/umeng/common/net/DownloadingService$b:<init>	(Lcom/umeng/common/net/DownloadingService;Landroid/content/Context;Lcom/umeng/common/net/a$a;IILcom/umeng/common/net/DownloadingService$a;)V
    //   180: astore 9
    //   182: aload 7
    //   184: aload 9
    //   186: putfield 284	com/umeng/common/net/DownloadingService$d:a	Lcom/umeng/common/net/DownloadingService$b;
    //   189: aload 9
    //   191: invokevirtual 437	com/umeng/common/net/DownloadingService$b:start	()V
    //   194: aload_0
    //   195: aload 7
    //   197: getfield 440	com/umeng/common/net/DownloadingService$d:b	Landroid/app/Notification;
    //   200: iload 5
    //   202: invokespecial 250	com/umeng/common/net/DownloadingService:b	(Landroid/app/Notification;I)V
    //   205: iconst_1
    //   206: ireturn
    //   207: getstatic 58	com/umeng/common/net/DownloadingService:j	Ljava/lang/String;
    //   210: ldc_w 408
    //   213: invokestatic 281	com/umeng/common/Log:c	(Ljava/lang/String;Ljava/lang/String;)V
    //   216: aload 8
    //   218: iconst_1
    //   219: invokevirtual 288	com/umeng/common/net/DownloadingService$b:a	(I)V
    //   222: aload 7
    //   224: aconst_null
    //   225: putfield 284	com/umeng/common/net/DownloadingService$d:a	Lcom/umeng/common/net/DownloadingService$b;
    //   228: aload_0
    //   229: aload 7
    //   231: getfield 440	com/umeng/common/net/DownloadingService$d:b	Landroid/app/Notification;
    //   234: iload 5
    //   236: invokespecial 442	com/umeng/common/net/DownloadingService:a	(Landroid/app/Notification;I)V
    //   239: iconst_1
    //   240: ireturn
    //   241: ldc 252
    //   243: aload 6
    //   245: invokevirtual 406	java/lang/String:equals	(Ljava/lang/Object;)Z
    //   248: ifeq +92 -> 340
    //   251: getstatic 58	com/umeng/common/net/DownloadingService:j	Ljava/lang/String;
    //   254: ldc_w 444
    //   257: invokestatic 281	com/umeng/common/Log:c	(Ljava/lang/String;Ljava/lang/String;)V
    //   260: aload 8
    //   262: ifnull +17 -> 279
    //   265: aload 8
    //   267: iconst_2
    //   268: invokevirtual 288	com/umeng/common/net/DownloadingService$b:a	(I)V
    //   271: aload_0
    //   272: iload 5
    //   274: invokespecial 330	com/umeng/common/net/DownloadingService:a	(I)V
    //   277: iconst_1
    //   278: ireturn
    //   279: aload 7
    //   281: getfield 447	com/umeng/common/net/DownloadingService$d:f	[J
    //   284: iconst_0
    //   285: laload
    //   286: lstore 12
    //   288: aload 7
    //   290: getfield 447	com/umeng/common/net/DownloadingService$d:f	[J
    //   293: iconst_1
    //   294: laload
    //   295: lstore 14
    //   297: aload 7
    //   299: getfield 447	com/umeng/common/net/DownloadingService$d:f	[J
    //   302: iconst_2
    //   303: laload
    //   304: lstore 16
    //   306: aload_0
    //   307: aload 7
    //   309: getfield 276	com/umeng/common/net/DownloadingService$d:e	Lcom/umeng/common/net/a$a;
    //   312: lload 12
    //   314: lload 14
    //   316: lload 16
    //   318: invokespecial 339	com/umeng/common/net/DownloadingService:a	(Lcom/umeng/common/net/a$a;JJJ)V
    //   321: goto -50 -> 271
    //   324: astore 11
    //   326: aload_0
    //   327: iload 5
    //   329: invokespecial 330	com/umeng/common/net/DownloadingService:a	(I)V
    //   332: goto -55 -> 277
    //   335: astore_3
    //   336: aload_3
    //   337: invokevirtual 450	java/lang/Exception:printStackTrace	()V
    //   340: iconst_0
    //   341: ireturn
    //   342: astore 10
    //   344: aload_0
    //   345: iload 5
    //   347: invokespecial 330	com/umeng/common/net/DownloadingService:a	(I)V
    //   350: aload 10
    //   352: athrow
    //
    // Exception table:
    //   from	to	target	type
    //   265	271	324	java/lang/Exception
    //   279	321	324	java/lang/Exception
    //   0	36	335	java/lang/Exception
    //   41	100	335	java/lang/Exception
    //   105	153	335	java/lang/Exception
    //   155	205	335	java/lang/Exception
    //   207	239	335	java/lang/Exception
    //   241	260	335	java/lang/Exception
    //   271	277	335	java/lang/Exception
    //   326	332	335	java/lang/Exception
    //   344	353	335	java/lang/Exception
    //   265	271	342	finally
    //   279	321	342	finally
  }

  private void b(Notification paramNotification, int paramInt)
  {
    int i1 = a.f(this.m);
    paramNotification.contentView.setTextViewText(i1, this.m.getResources().getString(com.umeng.common.a.c.d(this.m.getApplicationContext())));
    paramNotification.contentView.setInt(i1, "setBackgroundResource", com.umeng.common.c.a(this.m).c("umeng_common_gradient_orange"));
    this.k.notify(paramInt, paramNotification);
  }

  private static final void b(Map<String, String> paramMap, boolean paramBoolean, String[] paramArrayOfString)
  {
    new Thread(new i(paramArrayOfString, paramBoolean, paramMap)).start();
  }

  private static boolean b(Context paramContext)
  {
    ActivityManager.RunningAppProcessInfo localRunningAppProcessInfo;
    List localList = ((ActivityManager)paramContext.getSystemService("activity")).getRunningAppProcesses();
    if (localList == null)
      return false;
    String str = paramContext.getPackageName();
    Iterator localIterator = localList.iterator();
    do
    {
      if (!(localIterator.hasNext()))
        return false;
      localRunningAppProcessInfo = (ActivityManager.RunningAppProcessInfo)localIterator.next();
    }
    while ((localRunningAppProcessInfo.importance != 100) || (!(localRunningAppProcessInfo.processName.equals(str))));
    return true;
  }

  private void c(a.a parama)
  {
    Iterator localIterator;
    Log.c(j, "startDownload([mComponentName:" + parama.a + " mTitle:" + parama.b + " mUrl:" + parama.c + "])");
    int i1 = a(parama);
    b localb = new b(getApplicationContext(), parama, i1, 0, this.o);
    d locald1 = new d(parama, i1);
    locald1.a();
    locald1.a = localb;
    localb.start();
    e();
    if (h)
      localIterator = r.keySet().iterator();
    while (true)
    {
      if (!(localIterator.hasNext()))
        return;
      Integer localInteger = (Integer)localIterator.next();
      d locald2 = (d)r.get(localInteger);
      Log.c(j, "Running task " + locald2.e.b);
    }
  }

  private void d()
  {
    IntentFilter localIntentFilter = new IntentFilter("com.umeng.intent.DOWNLOAD");
    this.s = new f(this);
    registerReceiver(this.s, localIntentFilter);
  }

  private static boolean d(a.a parama)
  {
    int i1;
    Iterator localIterator2;
    if (h)
    {
      i1 = new Random().nextInt(1000);
      if (q == null)
        break label122;
      localIterator2 = q.keySet().iterator();
      label40: if (localIterator2.hasNext())
        break label57;
    }
    while (q == null)
    {
      return false;
      label57: a.a locala = (a.a)localIterator2.next();
      Log.c(j, "_" + i1 + " downling  " + locala.b + "   " + locala.c);
      break label40:
      label122: Log.c(j, "_" + i1 + "downling  null");
    }
    Iterator localIterator1 = q.keySet().iterator();
    do
      if (!(localIterator1.hasNext()))
        return false;
    while (!(((a.a)localIterator1.next()).c.equals(parama.c)));
    return true;
  }

  private void e()
  {
    if (!(h))
      return;
    int i1 = q.size();
    int i2 = r.size();
    Log.a(j, "Client size =" + i1 + "   cacheSize = " + i2);
    if (i1 == i2)
      return;
    throw new RuntimeException("Client size =" + i1 + "   cacheSize = " + i2);
  }

  public void a(String paramString)
  {
    synchronized (t)
    {
      if (!(t.booleanValue()))
      {
        Log.c(j, "show single toast.[" + paramString + "]");
        t = Boolean.valueOf(true);
        this.n.post(new g(this, paramString));
        this.n.postDelayed(new h(this), 1200L);
      }
      return;
    }
  }

  public IBinder onBind(Intent paramIntent)
  {
    Log.c(j, "onBind ");
    return this.i.getBinder();
  }

  public void onCreate()
  {
    super.onCreate();
    if (h)
    {
      Log.LOG = true;
      Debug.waitForDebugger();
    }
    Log.c(j, "onCreate ");
    this.k = ((NotificationManager)getSystemService("notification"));
    this.m = this;
    this.n = new d(this);
    this.o = new e(this);
  }

  public void onDestroy()
  {
    try
    {
      c.a(getApplicationContext()).a(259200);
      c.a(getApplicationContext()).finalize();
      if (this.s != null)
        unregisterReceiver(this.s);
      super.onDestroy();
      return;
    }
    catch (Exception localException)
    {
      Log.b(j, localException.getMessage());
    }
  }

  public void onStart(Intent paramIntent, int paramInt)
  {
    Log.c(j, "onStart ");
    a(getApplicationContext(), paramIntent);
    super.onStart(paramIntent, paramInt);
  }

  private static abstract interface a
  {
    public abstract void a(int paramInt);

    public abstract void a(int paramInt1, int paramInt2);

    public abstract void a(int paramInt, Exception paramException);

    public abstract void a(int paramInt, String paramString);
  }

  class b extends Thread
  {
    private Context b;
    private String c;
    private int d = 0;
    private long e = -1L;
    private long f = -1L;
    private int g = -1;
    private int h;
    private DownloadingService.a i;
    private a.a j;

    public b(Context paramContext, a.a parama, int paramInt1, int paramInt2, DownloadingService.a parama1)
    {
      try
      {
        this.b = paramContext;
        this.j = parama;
        this.d = paramInt2;
        if (DownloadingService.c().containsKey(Integer.valueOf(paramInt1)))
        {
          long[] arrayOfLong = ((DownloadingService.d)DownloadingService.c().get(Integer.valueOf(paramInt1))).f;
          if ((arrayOfLong != null) && (arrayOfLong.length > 1))
          {
            this.e = arrayOfLong[0];
            this.f = arrayOfLong[1];
          }
        }
        this.i = parama1;
        this.h = paramInt1;
        if (com.umeng.common.b.b())
        {
          this.c = Environment.getExternalStorageDirectory().getCanonicalPath();
          new File(this.c).mkdirs();
          this.c += "/download/.um/apk";
          new File(this.c).mkdirs();
          return;
        }
        this.c = this.b.getFilesDir().getAbsolutePath();
      }
      catch (Exception localException)
      {
        Log.c(DownloadingService.a(), localException.getMessage(), localException);
        this.i.a(this.h, localException);
      }
    }

    private void a(Exception paramException)
    {
      Log.b(DownloadingService.a(), "can not install. " + paramException.getMessage());
      if (this.i != null)
        this.i.a(this.h, paramException);
      DownloadingService.a(DownloadingService.this, this.j, this.e, this.f, this.d);
    }

    // ERROR //
    private void a(boolean paramBoolean)
    {
      // Byte code:
      //   0: new 101	java/lang/StringBuilder
      //   3: dup
      //   4: aload_0
      //   5: getfield 44	com/umeng/common/net/DownloadingService$b:j	Lcom/umeng/common/net/a$a;
      //   8: getfield 161	com/umeng/common/net/a$a:c	Ljava/lang/String;
      //   11: invokestatic 166	com/umeng/common/b/g:a	(Ljava/lang/String;)Ljava/lang/String;
      //   14: invokestatic 106	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
      //   17: invokespecial 107	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
      //   20: ldc 168
      //   22: invokevirtual 113	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
      //   25: invokevirtual 116	java/lang/StringBuilder:toString	()Ljava/lang/String;
      //   28: astore 38
      //   30: invokestatic 79	com/umeng/common/b:b	()Z
      //   33: ifeq +453 -> 486
      //   36: new 87	java/io/File
      //   39: dup
      //   40: aload_0
      //   41: getfield 93	com/umeng/common/net/DownloadingService$b:c	Ljava/lang/String;
      //   44: aload 38
      //   46: invokespecial 170	java/io/File:<init>	(Ljava/lang/String;Ljava/lang/String;)V
      //   49: astore 39
      //   51: new 172	java/io/FileOutputStream
      //   54: dup
      //   55: aload 39
      //   57: iconst_1
      //   58: invokespecial 175	java/io/FileOutputStream:<init>	(Ljava/io/File;Z)V
      //   61: astore 7
      //   63: aload 39
      //   65: astore 40
      //   67: invokestatic 126	com/umeng/common/net/DownloadingService:a	()Ljava/lang/String;
      //   70: astore 42
      //   72: iconst_2
      //   73: anewarray 177	java/lang/Object
      //   76: astore 43
      //   78: aload 43
      //   80: iconst_0
      //   81: aload_0
      //   82: getfield 44	com/umeng/common/net/DownloadingService$b:j	Lcom/umeng/common/net/a$a;
      //   85: getfield 161	com/umeng/common/net/a$a:c	Ljava/lang/String;
      //   88: aastore
      //   89: aload 43
      //   91: iconst_1
      //   92: aload 40
      //   94: invokevirtual 124	java/io/File:getAbsolutePath	()Ljava/lang/String;
      //   97: aastore
      //   98: aload 42
      //   100: ldc 179
      //   102: aload 43
      //   104: invokestatic 183	java/lang/String:format	(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
      //   107: invokestatic 185	com/umeng/common/Log:c	(Ljava/lang/String;Ljava/lang/String;)V
      //   110: new 187	java/net/URL
      //   113: dup
      //   114: aload_0
      //   115: getfield 44	com/umeng/common/net/DownloadingService$b:j	Lcom/umeng/common/net/a$a;
      //   118: getfield 161	com/umeng/common/net/a$a:c	Ljava/lang/String;
      //   121: invokespecial 188	java/net/URL:<init>	(Ljava/lang/String;)V
      //   124: invokevirtual 192	java/net/URL:openConnection	()Ljava/net/URLConnection;
      //   127: checkcast 194	java/net/HttpURLConnection
      //   130: astore 44
      //   132: aload 44
      //   134: ldc 196
      //   136: invokevirtual 199	java/net/HttpURLConnection:setRequestMethod	(Ljava/lang/String;)V
      //   139: aload 44
      //   141: ldc 201
      //   143: ldc 203
      //   145: invokevirtual 206	java/net/HttpURLConnection:setRequestProperty	(Ljava/lang/String;Ljava/lang/String;)V
      //   148: aload 44
      //   150: ldc 208
      //   152: ldc 210
      //   154: invokevirtual 213	java/net/HttpURLConnection:addRequestProperty	(Ljava/lang/String;Ljava/lang/String;)V
      //   157: aload 44
      //   159: sipush 5000
      //   162: invokevirtual 217	java/net/HttpURLConnection:setConnectTimeout	(I)V
      //   165: aload 44
      //   167: sipush 10000
      //   170: invokevirtual 220	java/net/HttpURLConnection:setReadTimeout	(I)V
      //   173: aload 40
      //   175: invokevirtual 223	java/io/File:exists	()Z
      //   178: ifeq +45 -> 223
      //   181: aload 40
      //   183: invokevirtual 227	java/io/File:length	()J
      //   186: lconst_0
      //   187: lcmp
      //   188: ifle +35 -> 223
      //   191: aload 44
      //   193: ldc 229
      //   195: new 101	java/lang/StringBuilder
      //   198: dup
      //   199: ldc 231
      //   201: invokespecial 107	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
      //   204: aload 40
      //   206: invokevirtual 227	java/io/File:length	()J
      //   209: invokevirtual 234	java/lang/StringBuilder:append	(J)Ljava/lang/StringBuilder;
      //   212: ldc 236
      //   214: invokevirtual 113	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
      //   217: invokevirtual 116	java/lang/StringBuilder:toString	()Ljava/lang/String;
      //   220: invokevirtual 206	java/net/HttpURLConnection:setRequestProperty	(Ljava/lang/String;Ljava/lang/String;)V
      //   223: aload 44
      //   225: invokevirtual 239	java/net/HttpURLConnection:connect	()V
      //   228: aload 44
      //   230: invokevirtual 243	java/net/HttpURLConnection:getInputStream	()Ljava/io/InputStream;
      //   233: astore 45
      //   235: aload 45
      //   237: astore 8
      //   239: iload_1
      //   240: ifne +52 -> 292
      //   243: aload_0
      //   244: lconst_0
      //   245: putfield 36	com/umeng/common/net/DownloadingService$b:e	J
      //   248: aload_0
      //   249: aload 44
      //   251: invokevirtual 247	java/net/HttpURLConnection:getContentLength	()I
      //   254: i2l
      //   255: putfield 38	com/umeng/common/net/DownloadingService$b:f	J
      //   258: invokestatic 126	com/umeng/common/net/DownloadingService:a	()Ljava/lang/String;
      //   261: astore 87
      //   263: iconst_1
      //   264: anewarray 177	java/lang/Object
      //   267: astore 88
      //   269: aload 88
      //   271: iconst_0
      //   272: aload_0
      //   273: getfield 38	com/umeng/common/net/DownloadingService$b:f	J
      //   276: invokestatic 252	java/lang/Long:valueOf	(J)Ljava/lang/Long;
      //   279: aastore
      //   280: aload 87
      //   282: ldc 254
      //   284: aload 88
      //   286: invokestatic 183	java/lang/String:format	(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
      //   289: invokestatic 185	com/umeng/common/Log:c	(Ljava/lang/String;Ljava/lang/String;)V
      //   292: sipush 4096
      //   295: newarray byte
      //   297: astore 47
      //   299: iconst_0
      //   300: istore 48
      //   302: invokestatic 126	com/umeng/common/net/DownloadingService:a	()Ljava/lang/String;
      //   305: new 101	java/lang/StringBuilder
      //   308: dup
      //   309: aload_0
      //   310: getfield 44	com/umeng/common/net/DownloadingService$b:j	Lcom/umeng/common/net/a$a;
      //   313: getfield 256	com/umeng/common/net/a$a:b	Ljava/lang/String;
      //   316: invokestatic 106	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
      //   319: invokespecial 107	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
      //   322: ldc_w 258
      //   325: invokevirtual 113	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
      //   328: aload_0
      //   329: getfield 38	com/umeng/common/net/DownloadingService$b:f	J
      //   332: invokestatic 261	java/lang/String:valueOf	(J)Ljava/lang/String;
      //   335: invokevirtual 113	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
      //   338: invokevirtual 116	java/lang/StringBuilder:toString	()Ljava/lang/String;
      //   341: invokestatic 185	com/umeng/common/Log:c	(Ljava/lang/String;Ljava/lang/String;)V
      //   344: aload_0
      //   345: getfield 42	com/umeng/common/net/DownloadingService$b:b	Landroid/content/Context;
      //   348: invokestatic 266	com/umeng/common/net/c:a	(Landroid/content/Context;)Lcom/umeng/common/net/c;
      //   351: aload_0
      //   352: getfield 44	com/umeng/common/net/DownloadingService$b:j	Lcom/umeng/common/net/a$a;
      //   355: getfield 268	com/umeng/common/net/a$a:a	Ljava/lang/String;
      //   358: aload_0
      //   359: getfield 44	com/umeng/common/net/DownloadingService$b:j	Lcom/umeng/common/net/a$a;
      //   362: getfield 161	com/umeng/common/net/a$a:c	Ljava/lang/String;
      //   365: invokevirtual 271	com/umeng/common/net/c:a	(Ljava/lang/String;Ljava/lang/String;)Z
      //   368: pop
      //   369: aload_0
      //   370: getfield 40	com/umeng/common/net/DownloadingService$b:g	I
      //   373: ifge +1816 -> 2189
      //   376: aload 8
      //   378: aload 47
      //   380: invokevirtual 277	java/io/InputStream:read	([B)I
      //   383: istore 79
      //   385: iload 79
      //   387: ifgt +149 -> 536
      //   390: goto +1799 -> 2189
      //   393: aload 8
      //   395: invokevirtual 280	java/io/InputStream:close	()V
      //   398: aload 7
      //   400: invokevirtual 281	java/io/FileOutputStream:close	()V
      //   403: aload_0
      //   404: getfield 40	com/umeng/common/net/DownloadingService$b:g	I
      //   407: iconst_1
      //   408: if_icmpne +570 -> 978
      //   411: invokestatic 49	com/umeng/common/net/DownloadingService:c	()Ljava/util/Map;
      //   414: aload_0
      //   415: getfield 74	com/umeng/common/net/DownloadingService$b:h	I
      //   418: invokestatic 55	java/lang/Integer:valueOf	(I)Ljava/lang/Integer;
      //   421: invokeinterface 65 2 0
      //   426: checkcast 67	com/umeng/common/net/DownloadingService$d
      //   429: astore 73
      //   431: aload 73
      //   433: getfield 70	com/umeng/common/net/DownloadingService$d:f	[J
      //   436: iconst_0
      //   437: aload_0
      //   438: getfield 36	com/umeng/common/net/DownloadingService$b:e	J
      //   441: lastore
      //   442: aload 73
      //   444: getfield 70	com/umeng/common/net/DownloadingService$d:f	[J
      //   447: iconst_1
      //   448: aload_0
      //   449: getfield 38	com/umeng/common/net/DownloadingService$b:f	J
      //   452: lastore
      //   453: aload 73
      //   455: getfield 70	com/umeng/common/net/DownloadingService$d:f	[J
      //   458: iconst_2
      //   459: aload_0
      //   460: getfield 32	com/umeng/common/net/DownloadingService$b:d	I
      //   463: i2l
      //   464: lastore
      //   465: aload 8
      //   467: ifnull +8 -> 475
      //   470: aload 8
      //   472: invokevirtual 280	java/io/InputStream:close	()V
      //   475: aload 7
      //   477: ifnull +8 -> 485
      //   480: aload 7
      //   482: invokevirtual 281	java/io/FileOutputStream:close	()V
      //   485: return
      //   486: aload_0
      //   487: aload_0
      //   488: getfield 42	com/umeng/common/net/DownloadingService$b:b	Landroid/content/Context;
      //   491: invokevirtual 121	android/content/Context:getFilesDir	()Ljava/io/File;
      //   494: invokevirtual 124	java/io/File:getAbsolutePath	()Ljava/lang/String;
      //   497: putfield 93	com/umeng/common/net/DownloadingService$b:c	Ljava/lang/String;
      //   500: aload_0
      //   501: getfield 42	com/umeng/common/net/DownloadingService$b:b	Landroid/content/Context;
      //   504: aload 38
      //   506: ldc_w 282
      //   509: invokevirtual 286	android/content/Context:openFileOutput	(Ljava/lang/String;I)Ljava/io/FileOutputStream;
      //   512: astore 89
      //   514: aload_0
      //   515: getfield 42	com/umeng/common/net/DownloadingService$b:b	Landroid/content/Context;
      //   518: aload 38
      //   520: invokevirtual 290	android/content/Context:getFileStreamPath	(Ljava/lang/String;)Ljava/io/File;
      //   523: astore 91
      //   525: aload 91
      //   527: astore 40
      //   529: aload 89
      //   531: astore 7
      //   533: goto -466 -> 67
      //   536: aload 7
      //   538: aload 47
      //   540: iconst_0
      //   541: iload 79
      //   543: invokevirtual 294	java/io/FileOutputStream:write	([BII)V
      //   546: aload_0
      //   547: aload_0
      //   548: getfield 36	com/umeng/common/net/DownloadingService$b:e	J
      //   551: iload 79
      //   553: i2l
      //   554: ladd
      //   555: putfield 36	com/umeng/common/net/DownloadingService$b:e	J
      //   558: iload 48
      //   560: iconst_1
      //   561: iadd
      //   562: istore 80
      //   564: iload 48
      //   566: bipush 50
      //   568: irem
      //   569: ifne +1626 -> 2195
      //   572: aload_0
      //   573: getfield 42	com/umeng/common/net/DownloadingService$b:b	Landroid/content/Context;
      //   576: invokestatic 298	com/umeng/common/b:m	(Landroid/content/Context;)Z
      //   579: ifne +9 -> 588
      //   582: iconst_0
      //   583: istore 50
      //   585: goto -192 -> 393
      //   588: ldc_w 299
      //   591: aload_0
      //   592: getfield 36	com/umeng/common/net/DownloadingService$b:e	J
      //   595: l2f
      //   596: fmul
      //   597: aload_0
      //   598: getfield 38	com/umeng/common/net/DownloadingService$b:f	J
      //   601: l2f
      //   602: fdiv
      //   603: f2i
      //   604: istore 81
      //   606: iload 81
      //   608: bipush 100
      //   610: if_icmple +1572 -> 2182
      //   613: bipush 99
      //   615: istore 82
      //   617: aload_0
      //   618: getfield 72	com/umeng/common/net/DownloadingService$b:i	Lcom/umeng/common/net/DownloadingService$a;
      //   621: ifnull +18 -> 639
      //   624: aload_0
      //   625: getfield 72	com/umeng/common/net/DownloadingService$b:i	Lcom/umeng/common/net/DownloadingService$a;
      //   628: aload_0
      //   629: getfield 74	com/umeng/common/net/DownloadingService$b:h	I
      //   632: iload 82
      //   634: invokeinterface 302 3 0
      //   639: invokestatic 304	com/umeng/common/net/DownloadingService:b	()Ljava/util/Map;
      //   642: aload_0
      //   643: getfield 44	com/umeng/common/net/DownloadingService$b:j	Lcom/umeng/common/net/a$a;
      //   646: invokeinterface 65 2 0
      //   651: ifnull +29 -> 680
      //   654: invokestatic 304	com/umeng/common/net/DownloadingService:b	()Ljava/util/Map;
      //   657: aload_0
      //   658: getfield 44	com/umeng/common/net/DownloadingService$b:j	Lcom/umeng/common/net/a$a;
      //   661: invokeinterface 65 2 0
      //   666: checkcast 306	android/os/Messenger
      //   669: aconst_null
      //   670: iconst_3
      //   671: iload 82
      //   673: iconst_0
      //   674: invokestatic 312	android/os/Message:obtain	(Landroid/os/Handler;III)Landroid/os/Message;
      //   677: invokevirtual 316	android/os/Messenger:send	(Landroid/os/Message;)V
      //   680: aload_0
      //   681: getfield 42	com/umeng/common/net/DownloadingService$b:b	Landroid/content/Context;
      //   684: invokestatic 266	com/umeng/common/net/c:a	(Landroid/content/Context;)Lcom/umeng/common/net/c;
      //   687: aload_0
      //   688: getfield 44	com/umeng/common/net/DownloadingService$b:j	Lcom/umeng/common/net/a$a;
      //   691: getfield 268	com/umeng/common/net/a$a:a	Ljava/lang/String;
      //   694: aload_0
      //   695: getfield 44	com/umeng/common/net/DownloadingService$b:j	Lcom/umeng/common/net/a$a;
      //   698: getfield 161	com/umeng/common/net/a$a:c	Ljava/lang/String;
      //   701: iload 82
      //   703: invokevirtual 319	com/umeng/common/net/c:a	(Ljava/lang/String;Ljava/lang/String;I)V
      //   706: goto +1489 -> 2195
      //   709: astore 83
      //   711: invokestatic 126	com/umeng/common/net/DownloadingService:a	()Ljava/lang/String;
      //   714: astore 84
      //   716: iconst_1
      //   717: anewarray 177	java/lang/Object
      //   720: astore 85
      //   722: aload 85
      //   724: iconst_0
      //   725: aload_0
      //   726: getfield 44	com/umeng/common/net/DownloadingService$b:j	Lcom/umeng/common/net/a$a;
      //   729: getfield 256	com/umeng/common/net/a$a:b	Ljava/lang/String;
      //   732: aastore
      //   733: aload 84
      //   735: ldc_w 321
      //   738: aload 85
      //   740: invokestatic 183	java/lang/String:format	(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
      //   743: invokestatic 146	com/umeng/common/Log:b	(Ljava/lang/String;Ljava/lang/String;)V
      //   746: invokestatic 304	com/umeng/common/net/DownloadingService:b	()Ljava/util/Map;
      //   749: aload_0
      //   750: getfield 44	com/umeng/common/net/DownloadingService$b:j	Lcom/umeng/common/net/a$a;
      //   753: aconst_null
      //   754: invokeinterface 325 3 0
      //   759: pop
      //   760: goto -80 -> 680
      //   763: astore 46
      //   765: aload 46
      //   767: astore_3
      //   768: aload 7
      //   770: astore 4
      //   772: aload 8
      //   774: astore 5
      //   776: invokestatic 126	com/umeng/common/net/DownloadingService:a	()Ljava/lang/String;
      //   779: aload_3
      //   780: invokevirtual 326	java/io/IOException:getMessage	()Ljava/lang/String;
      //   783: aload_3
      //   784: invokestatic 134	com/umeng/common/Log:c	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V
      //   787: iconst_1
      //   788: aload_0
      //   789: getfield 32	com/umeng/common/net/DownloadingService$b:d	I
      //   792: iadd
      //   793: istore 14
      //   795: aload_0
      //   796: iload 14
      //   798: putfield 32	com/umeng/common/net/DownloadingService$b:d	I
      //   801: iload 14
      //   803: iconst_3
      //   804: if_icmple +770 -> 1574
      //   807: aload_0
      //   808: getfield 44	com/umeng/common/net/DownloadingService$b:j	Lcom/umeng/common/net/a$a;
      //   811: getfield 329	com/umeng/common/net/a$a:e	Z
      //   814: istore 15
      //   816: iload 15
      //   818: ifne +756 -> 1574
      //   821: invokestatic 126	com/umeng/common/net/DownloadingService:a	()Ljava/lang/String;
      //   824: ldc_w 331
      //   827: invokestatic 146	com/umeng/common/Log:b	(Ljava/lang/String;Ljava/lang/String;)V
      //   830: invokestatic 304	com/umeng/common/net/DownloadingService:b	()Ljava/util/Map;
      //   833: aload_0
      //   834: getfield 44	com/umeng/common/net/DownloadingService$b:j	Lcom/umeng/common/net/a$a;
      //   837: invokeinterface 65 2 0
      //   842: checkcast 306	android/os/Messenger
      //   845: aconst_null
      //   846: iconst_5
      //   847: iconst_0
      //   848: iconst_0
      //   849: invokestatic 312	android/os/Message:obtain	(Landroid/os/Handler;III)Landroid/os/Message;
      //   852: invokevirtual 316	android/os/Messenger:send	(Landroid/os/Message;)V
      //   855: aload_0
      //   856: getfield 27	com/umeng/common/net/DownloadingService$b:a	Lcom/umeng/common/net/DownloadingService;
      //   859: aload_0
      //   860: getfield 74	com/umeng/common/net/DownloadingService$b:h	I
      //   863: invokestatic 334	com/umeng/common/net/DownloadingService:a	(Lcom/umeng/common/net/DownloadingService;I)V
      //   866: aload_0
      //   867: aload_3
      //   868: invokespecial 336	com/umeng/common/net/DownloadingService$b:a	(Ljava/lang/Exception;)V
      //   871: aload_0
      //   872: getfield 27	com/umeng/common/net/DownloadingService$b:a	Lcom/umeng/common/net/DownloadingService;
      //   875: invokestatic 339	com/umeng/common/net/DownloadingService:c	(Lcom/umeng/common/net/DownloadingService;)Landroid/os/Handler;
      //   878: new 341	com/umeng/common/net/j
      //   881: dup
      //   882: aload_0
      //   883: invokespecial 344	com/umeng/common/net/j:<init>	(Lcom/umeng/common/net/DownloadingService$b;)V
      //   886: invokevirtual 350	android/os/Handler:post	(Ljava/lang/Runnable;)Z
      //   889: pop
      //   890: aload 5
      //   892: ifnull +8 -> 900
      //   895: aload 5
      //   897: invokevirtual 280	java/io/InputStream:close	()V
      //   900: aload 4
      //   902: ifnull -417 -> 485
      //   905: aload 4
      //   907: invokevirtual 281	java/io/FileOutputStream:close	()V
      //   910: return
      //   911: astore 17
      //   913: aload 17
      //   915: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   918: return
      //   919: astore 77
      //   921: aload 77
      //   923: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   926: aload 7
      //   928: ifnull -443 -> 485
      //   931: aload 7
      //   933: invokevirtual 281	java/io/FileOutputStream:close	()V
      //   936: return
      //   937: astore 78
      //   939: aload 78
      //   941: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   944: return
      //   945: astore 75
      //   947: aload 7
      //   949: ifnull +8 -> 957
      //   952: aload 7
      //   954: invokevirtual 281	java/io/FileOutputStream:close	()V
      //   957: aload 75
      //   959: athrow
      //   960: astore 76
      //   962: aload 76
      //   964: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   967: goto -10 -> 957
      //   970: astore 74
      //   972: aload 74
      //   974: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   977: return
      //   978: aload_0
      //   979: getfield 40	com/umeng/common/net/DownloadingService$b:g	I
      //   982: iconst_2
      //   983: if_icmpne +121 -> 1104
      //   986: aload_0
      //   987: getfield 27	com/umeng/common/net/DownloadingService$b:a	Lcom/umeng/common/net/DownloadingService;
      //   990: aload_0
      //   991: getfield 44	com/umeng/common/net/DownloadingService$b:j	Lcom/umeng/common/net/a$a;
      //   994: aload_0
      //   995: getfield 36	com/umeng/common/net/DownloadingService$b:e	J
      //   998: aload_0
      //   999: getfield 38	com/umeng/common/net/DownloadingService$b:f	J
      //   1002: aload_0
      //   1003: getfield 32	com/umeng/common/net/DownloadingService$b:d	I
      //   1006: i2l
      //   1007: invokestatic 149	com/umeng/common/net/DownloadingService:a	(Lcom/umeng/common/net/DownloadingService;Lcom/umeng/common/net/a$a;JJJ)V
      //   1010: aload_0
      //   1011: getfield 27	com/umeng/common/net/DownloadingService$b:a	Lcom/umeng/common/net/DownloadingService;
      //   1014: invokestatic 356	com/umeng/common/net/DownloadingService:b	(Lcom/umeng/common/net/DownloadingService;)Landroid/app/NotificationManager;
      //   1017: aload_0
      //   1018: getfield 74	com/umeng/common/net/DownloadingService$b:h	I
      //   1021: invokevirtual 361	android/app/NotificationManager:cancel	(I)V
      //   1024: aload 8
      //   1026: ifnull +8 -> 1034
      //   1029: aload 8
      //   1031: invokevirtual 280	java/io/InputStream:close	()V
      //   1034: aload 7
      //   1036: ifnull -551 -> 485
      //   1039: aload 7
      //   1041: invokevirtual 281	java/io/FileOutputStream:close	()V
      //   1044: return
      //   1045: astore 68
      //   1047: aload 68
      //   1049: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   1052: return
      //   1053: astore 71
      //   1055: aload 71
      //   1057: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   1060: aload 7
      //   1062: ifnull -577 -> 485
      //   1065: aload 7
      //   1067: invokevirtual 281	java/io/FileOutputStream:close	()V
      //   1070: return
      //   1071: astore 72
      //   1073: aload 72
      //   1075: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   1078: return
      //   1079: astore 69
      //   1081: aload 7
      //   1083: ifnull +8 -> 1091
      //   1086: aload 7
      //   1088: invokevirtual 281	java/io/FileOutputStream:close	()V
      //   1091: aload 69
      //   1093: athrow
      //   1094: astore 70
      //   1096: aload 70
      //   1098: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   1101: goto -10 -> 1091
      //   1104: iload 50
      //   1106: ifne +166 -> 1272
      //   1109: invokestatic 126	com/umeng/common/net/DownloadingService:a	()Ljava/lang/String;
      //   1112: new 101	java/lang/StringBuilder
      //   1115: dup
      //   1116: ldc_w 363
      //   1119: invokespecial 107	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
      //   1122: aload_0
      //   1123: getfield 32	com/umeng/common/net/DownloadingService$b:d	I
      //   1126: invokevirtual 366	java/lang/StringBuilder:append	(I)Ljava/lang/StringBuilder;
      //   1129: invokevirtual 116	java/lang/StringBuilder:toString	()Ljava/lang/String;
      //   1132: invokestatic 146	com/umeng/common/Log:b	(Ljava/lang/String;Ljava/lang/String;)V
      //   1135: invokestatic 304	com/umeng/common/net/DownloadingService:b	()Ljava/util/Map;
      //   1138: aload_0
      //   1139: getfield 44	com/umeng/common/net/DownloadingService$b:j	Lcom/umeng/common/net/a$a;
      //   1142: invokeinterface 65 2 0
      //   1147: checkcast 306	android/os/Messenger
      //   1150: aconst_null
      //   1151: iconst_5
      //   1152: iconst_0
      //   1153: iconst_0
      //   1154: invokestatic 312	android/os/Message:obtain	(Landroid/os/Handler;III)Landroid/os/Message;
      //   1157: invokevirtual 316	android/os/Messenger:send	(Landroid/os/Message;)V
      //   1160: aload_0
      //   1161: getfield 27	com/umeng/common/net/DownloadingService$b:a	Lcom/umeng/common/net/DownloadingService;
      //   1164: aload_0
      //   1165: getfield 74	com/umeng/common/net/DownloadingService$b:h	I
      //   1168: invokestatic 334	com/umeng/common/net/DownloadingService:a	(Lcom/umeng/common/net/DownloadingService;I)V
      //   1171: aload_0
      //   1172: getfield 72	com/umeng/common/net/DownloadingService$b:i	Lcom/umeng/common/net/DownloadingService$a;
      //   1175: ifnull +17 -> 1192
      //   1178: aload_0
      //   1179: getfield 72	com/umeng/common/net/DownloadingService$b:i	Lcom/umeng/common/net/DownloadingService$a;
      //   1182: aload_0
      //   1183: getfield 74	com/umeng/common/net/DownloadingService$b:h	I
      //   1186: aconst_null
      //   1187: invokeinterface 139 3 0
      //   1192: aload 8
      //   1194: ifnull +8 -> 1202
      //   1197: aload 8
      //   1199: invokevirtual 280	java/io/InputStream:close	()V
      //   1202: aload 7
      //   1204: ifnull -719 -> 485
      //   1207: aload 7
      //   1209: invokevirtual 281	java/io/FileOutputStream:close	()V
      //   1212: return
      //   1213: astore 63
      //   1215: aload 63
      //   1217: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   1220: return
      //   1221: astore 66
      //   1223: aload 66
      //   1225: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   1228: aload 7
      //   1230: ifnull -745 -> 485
      //   1233: aload 7
      //   1235: invokevirtual 281	java/io/FileOutputStream:close	()V
      //   1238: return
      //   1239: astore 67
      //   1241: aload 67
      //   1243: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   1246: return
      //   1247: astore 64
      //   1249: aload 7
      //   1251: ifnull +8 -> 1259
      //   1254: aload 7
      //   1256: invokevirtual 281	java/io/FileOutputStream:close	()V
      //   1259: aload 64
      //   1261: athrow
      //   1262: astore 65
      //   1264: aload 65
      //   1266: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   1269: goto -10 -> 1259
      //   1272: aload_0
      //   1273: getfield 44	com/umeng/common/net/DownloadingService$b:j	Lcom/umeng/common/net/a$a;
      //   1276: getfield 369	com/umeng/common/net/a$a:d	[Ljava/lang/String;
      //   1279: ifnull +83 -> 1362
      //   1282: new 371	java/util/HashMap
      //   1285: dup
      //   1286: invokespecial 372	java/util/HashMap:<init>	()V
      //   1289: astore 51
      //   1291: aload 51
      //   1293: ldc_w 374
      //   1296: aload_0
      //   1297: getfield 38	com/umeng/common/net/DownloadingService$b:f	J
      //   1300: invokestatic 261	java/lang/String:valueOf	(J)Ljava/lang/String;
      //   1303: invokeinterface 325 3 0
      //   1308: pop
      //   1309: aload 51
      //   1311: ldc_w 376
      //   1314: invokestatic 377	com/umeng/common/b/g:a	()Ljava/lang/String;
      //   1317: ldc_w 379
      //   1320: invokevirtual 383	java/lang/String:split	(Ljava/lang/String;)[Ljava/lang/String;
      //   1323: iconst_1
      //   1324: aaload
      //   1325: invokeinterface 325 3 0
      //   1330: pop
      //   1331: aload 51
      //   1333: ldc_w 385
      //   1336: aload_0
      //   1337: getfield 32	com/umeng/common/net/DownloadingService$b:d	I
      //   1340: invokestatic 388	java/lang/String:valueOf	(I)Ljava/lang/String;
      //   1343: invokeinterface 325 3 0
      //   1348: pop
      //   1349: aload 51
      //   1351: iconst_1
      //   1352: aload_0
      //   1353: getfield 44	com/umeng/common/net/DownloadingService$b:j	Lcom/umeng/common/net/a$a;
      //   1356: getfield 369	com/umeng/common/net/a$a:d	[Ljava/lang/String;
      //   1359: invokestatic 391	com/umeng/common/net/DownloadingService:a	(Ljava/util/Map;Z[Ljava/lang/String;)V
      //   1362: new 87	java/io/File
      //   1365: dup
      //   1366: aload 40
      //   1368: invokevirtual 394	java/io/File:getParent	()Ljava/lang/String;
      //   1371: aload 40
      //   1373: invokevirtual 397	java/io/File:getName	()Ljava/lang/String;
      //   1376: ldc_w 399
      //   1379: ldc_w 401
      //   1382: invokevirtual 405	java/lang/String:replace	(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
      //   1385: invokespecial 170	java/io/File:<init>	(Ljava/lang/String;Ljava/lang/String;)V
      //   1388: astore 55
      //   1390: aload 40
      //   1392: aload 55
      //   1394: invokevirtual 409	java/io/File:renameTo	(Ljava/io/File;)Z
      //   1397: pop
      //   1398: aload 55
      //   1400: invokevirtual 124	java/io/File:getAbsolutePath	()Ljava/lang/String;
      //   1403: astore 57
      //   1405: aload_0
      //   1406: getfield 72	com/umeng/common/net/DownloadingService$b:i	Lcom/umeng/common/net/DownloadingService$a;
      //   1409: ifnull +18 -> 1427
      //   1412: aload_0
      //   1413: getfield 72	com/umeng/common/net/DownloadingService$b:i	Lcom/umeng/common/net/DownloadingService$a;
      //   1416: aload_0
      //   1417: getfield 74	com/umeng/common/net/DownloadingService$b:h	I
      //   1420: aload 57
      //   1422: invokeinterface 412 3 0
      //   1427: aload 8
      //   1429: ifnull +8 -> 1437
      //   1432: aload 8
      //   1434: invokevirtual 280	java/io/InputStream:close	()V
      //   1437: aload 7
      //   1439: ifnull -954 -> 485
      //   1442: aload 7
      //   1444: invokevirtual 281	java/io/FileOutputStream:close	()V
      //   1447: return
      //   1448: astore 58
      //   1450: aload 58
      //   1452: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   1455: return
      //   1456: astore 29
      //   1458: aload 29
      //   1460: invokevirtual 413	android/os/RemoteException:printStackTrace	()V
      //   1463: aload_0
      //   1464: getfield 27	com/umeng/common/net/DownloadingService$b:a	Lcom/umeng/common/net/DownloadingService;
      //   1467: aload_0
      //   1468: getfield 74	com/umeng/common/net/DownloadingService$b:h	I
      //   1471: invokestatic 334	com/umeng/common/net/DownloadingService:a	(Lcom/umeng/common/net/DownloadingService;I)V
      //   1474: aload_0
      //   1475: aload_3
      //   1476: invokespecial 336	com/umeng/common/net/DownloadingService$b:a	(Ljava/lang/Exception;)V
      //   1479: aload_0
      //   1480: getfield 27	com/umeng/common/net/DownloadingService$b:a	Lcom/umeng/common/net/DownloadingService;
      //   1483: invokestatic 339	com/umeng/common/net/DownloadingService:c	(Lcom/umeng/common/net/DownloadingService;)Landroid/os/Handler;
      //   1486: new 341	com/umeng/common/net/j
      //   1489: dup
      //   1490: aload_0
      //   1491: invokespecial 344	com/umeng/common/net/j:<init>	(Lcom/umeng/common/net/DownloadingService$b;)V
      //   1494: invokevirtual 350	android/os/Handler:post	(Ljava/lang/Runnable;)Z
      //   1497: pop
      //   1498: goto -608 -> 890
      //   1501: astore 6
      //   1503: aload 4
      //   1505: astore 7
      //   1507: aload 5
      //   1509: astore 8
      //   1511: aload 8
      //   1513: ifnull +8 -> 1521
      //   1516: aload 8
      //   1518: invokevirtual 280	java/io/InputStream:close	()V
      //   1521: aload 7
      //   1523: ifnull +8 -> 1531
      //   1526: aload 7
      //   1528: invokevirtual 281	java/io/FileOutputStream:close	()V
      //   1531: aload 6
      //   1533: athrow
      //   1534: astore 27
      //   1536: aload_0
      //   1537: getfield 27	com/umeng/common/net/DownloadingService$b:a	Lcom/umeng/common/net/DownloadingService;
      //   1540: aload_0
      //   1541: getfield 74	com/umeng/common/net/DownloadingService$b:h	I
      //   1544: invokestatic 334	com/umeng/common/net/DownloadingService:a	(Lcom/umeng/common/net/DownloadingService;I)V
      //   1547: aload_0
      //   1548: aload_3
      //   1549: invokespecial 336	com/umeng/common/net/DownloadingService$b:a	(Ljava/lang/Exception;)V
      //   1552: aload_0
      //   1553: getfield 27	com/umeng/common/net/DownloadingService$b:a	Lcom/umeng/common/net/DownloadingService;
      //   1556: invokestatic 339	com/umeng/common/net/DownloadingService:c	(Lcom/umeng/common/net/DownloadingService;)Landroid/os/Handler;
      //   1559: new 341	com/umeng/common/net/j
      //   1562: dup
      //   1563: aload_0
      //   1564: invokespecial 344	com/umeng/common/net/j:<init>	(Lcom/umeng/common/net/DownloadingService$b;)V
      //   1567: invokevirtual 350	android/os/Handler:post	(Ljava/lang/Runnable;)Z
      //   1570: pop
      //   1571: aload 27
      //   1573: athrow
      //   1574: invokestatic 126	com/umeng/common/net/DownloadingService:a	()Ljava/lang/String;
      //   1577: new 101	java/lang/StringBuilder
      //   1580: dup
      //   1581: ldc_w 415
      //   1584: invokespecial 107	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
      //   1587: aload_0
      //   1588: getfield 32	com/umeng/common/net/DownloadingService$b:d	I
      //   1591: invokevirtual 366	java/lang/StringBuilder:append	(I)Ljava/lang/StringBuilder;
      //   1594: invokevirtual 116	java/lang/StringBuilder:toString	()Ljava/lang/String;
      //   1597: invokestatic 185	com/umeng/common/Log:c	(Ljava/lang/String;Ljava/lang/String;)V
      //   1600: aload_0
      //   1601: getfield 44	com/umeng/common/net/DownloadingService$b:j	Lcom/umeng/common/net/a$a;
      //   1604: getfield 329	com/umeng/common/net/a$a:e	Z
      //   1607: ifne +56 -> 1663
      //   1610: ldc2_w 416
      //   1613: invokestatic 421	java/lang/Thread:sleep	(J)V
      //   1616: aload_0
      //   1617: getfield 38	com/umeng/common/net/DownloadingService$b:f	J
      //   1620: lconst_1
      //   1621: lcmp
      //   1622: ifge +33 -> 1655
      //   1625: aload_0
      //   1626: iconst_0
      //   1627: invokespecial 423	com/umeng/common/net/DownloadingService$b:a	(Z)V
      //   1630: goto -740 -> 890
      //   1633: astore 16
      //   1635: aload_0
      //   1636: aload 16
      //   1638: invokespecial 336	com/umeng/common/net/DownloadingService$b:a	(Ljava/lang/Exception;)V
      //   1641: aload_0
      //   1642: getfield 27	com/umeng/common/net/DownloadingService$b:a	Lcom/umeng/common/net/DownloadingService;
      //   1645: aload_0
      //   1646: getfield 74	com/umeng/common/net/DownloadingService$b:h	I
      //   1649: invokestatic 334	com/umeng/common/net/DownloadingService:a	(Lcom/umeng/common/net/DownloadingService;I)V
      //   1652: goto -762 -> 890
      //   1655: aload_0
      //   1656: iconst_1
      //   1657: invokespecial 423	com/umeng/common/net/DownloadingService$b:a	(Z)V
      //   1660: goto -770 -> 890
      //   1663: invokestatic 49	com/umeng/common/net/DownloadingService:c	()Ljava/util/Map;
      //   1666: aload_0
      //   1667: getfield 74	com/umeng/common/net/DownloadingService$b:h	I
      //   1670: invokestatic 55	java/lang/Integer:valueOf	(I)Ljava/lang/Integer;
      //   1673: invokeinterface 65 2 0
      //   1678: checkcast 67	com/umeng/common/net/DownloadingService$d
      //   1681: astore 22
      //   1683: aload 22
      //   1685: getfield 70	com/umeng/common/net/DownloadingService$d:f	[J
      //   1688: iconst_0
      //   1689: aload_0
      //   1690: getfield 36	com/umeng/common/net/DownloadingService$b:e	J
      //   1693: lastore
      //   1694: aload 22
      //   1696: getfield 70	com/umeng/common/net/DownloadingService$d:f	[J
      //   1699: iconst_1
      //   1700: aload_0
      //   1701: getfield 38	com/umeng/common/net/DownloadingService$b:f	J
      //   1704: lastore
      //   1705: aload 22
      //   1707: getfield 70	com/umeng/common/net/DownloadingService$d:f	[J
      //   1710: iconst_2
      //   1711: aload_0
      //   1712: getfield 32	com/umeng/common/net/DownloadingService$b:d	I
      //   1715: i2l
      //   1716: lastore
      //   1717: aload_0
      //   1718: getfield 74	com/umeng/common/net/DownloadingService$b:h	I
      //   1721: ldc_w 425
      //   1724: invokestatic 430	com/umeng/common/net/l:a	(ILjava/lang/String;)Ljava/lang/String;
      //   1727: astore 23
      //   1729: new 432	android/content/Intent
      //   1732: dup
      //   1733: aload_0
      //   1734: getfield 42	com/umeng/common/net/DownloadingService$b:b	Landroid/content/Context;
      //   1737: ldc 46
      //   1739: invokespecial 435	android/content/Intent:<init>	(Landroid/content/Context;Ljava/lang/Class;)V
      //   1742: astore 24
      //   1744: aload 24
      //   1746: ldc_w 437
      //   1749: aload 23
      //   1751: invokevirtual 441	android/content/Intent:putExtra	(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
      //   1754: pop
      //   1755: aload_0
      //   1756: getfield 27	com/umeng/common/net/DownloadingService$b:a	Lcom/umeng/common/net/DownloadingService;
      //   1759: aload_0
      //   1760: getfield 42	com/umeng/common/net/DownloadingService$b:b	Landroid/content/Context;
      //   1763: aload 24
      //   1765: invokestatic 444	com/umeng/common/net/DownloadingService:a	(Lcom/umeng/common/net/DownloadingService;Landroid/content/Context;Landroid/content/Intent;)Z
      //   1768: pop
      //   1769: aload_0
      //   1770: getfield 27	com/umeng/common/net/DownloadingService$b:a	Lcom/umeng/common/net/DownloadingService;
      //   1773: aload_0
      //   1774: getfield 42	com/umeng/common/net/DownloadingService$b:b	Landroid/content/Context;
      //   1777: aload_0
      //   1778: getfield 42	com/umeng/common/net/DownloadingService$b:b	Landroid/content/Context;
      //   1781: invokestatic 449	com/umeng/common/c:a	(Landroid/content/Context;)Lcom/umeng/common/c;
      //   1784: ldc_w 451
      //   1787: invokevirtual 454	com/umeng/common/c:f	(Ljava/lang/String;)I
      //   1790: invokevirtual 457	android/content/Context:getString	(I)Ljava/lang/String;
      //   1793: invokevirtual 459	com/umeng/common/net/DownloadingService:a	(Ljava/lang/String;)V
      //   1796: invokestatic 126	com/umeng/common/net/DownloadingService:a	()Ljava/lang/String;
      //   1799: ldc_w 461
      //   1802: invokestatic 185	com/umeng/common/Log:c	(Ljava/lang/String;Ljava/lang/String;)V
      //   1805: goto -915 -> 890
      //   1808: astore 20
      //   1810: aload 20
      //   1812: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   1815: aload 4
      //   1817: ifnull -1332 -> 485
      //   1820: aload 4
      //   1822: invokevirtual 281	java/io/FileOutputStream:close	()V
      //   1825: return
      //   1826: astore 21
      //   1828: aload 21
      //   1830: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   1833: return
      //   1834: astore 18
      //   1836: aload 4
      //   1838: ifnull +8 -> 1846
      //   1841: aload 4
      //   1843: invokevirtual 281	java/io/FileOutputStream:close	()V
      //   1846: aload 18
      //   1848: athrow
      //   1849: astore 19
      //   1851: aload 19
      //   1853: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   1856: goto -10 -> 1846
      //   1859: astore 32
      //   1861: aconst_null
      //   1862: astore 7
      //   1864: aconst_null
      //   1865: astore 8
      //   1867: aload_0
      //   1868: getfield 27	com/umeng/common/net/DownloadingService$b:a	Lcom/umeng/common/net/DownloadingService;
      //   1871: aload_0
      //   1872: getfield 74	com/umeng/common/net/DownloadingService$b:h	I
      //   1875: invokestatic 334	com/umeng/common/net/DownloadingService:a	(Lcom/umeng/common/net/DownloadingService;I)V
      //   1878: aload 32
      //   1880: invokevirtual 413	android/os/RemoteException:printStackTrace	()V
      //   1883: aload 8
      //   1885: ifnull +8 -> 1893
      //   1888: aload 8
      //   1890: invokevirtual 280	java/io/InputStream:close	()V
      //   1893: aload 7
      //   1895: ifnull -1410 -> 485
      //   1898: aload 7
      //   1900: invokevirtual 281	java/io/FileOutputStream:close	()V
      //   1903: return
      //   1904: astore 33
      //   1906: aload 33
      //   1908: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   1911: return
      //   1912: astore 36
      //   1914: aload 36
      //   1916: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   1919: aload 7
      //   1921: ifnull -1436 -> 485
      //   1924: aload 7
      //   1926: invokevirtual 281	java/io/FileOutputStream:close	()V
      //   1929: return
      //   1930: astore 37
      //   1932: aload 37
      //   1934: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   1937: return
      //   1938: astore 34
      //   1940: aload 7
      //   1942: ifnull +8 -> 1950
      //   1945: aload 7
      //   1947: invokevirtual 281	java/io/FileOutputStream:close	()V
      //   1950: aload 34
      //   1952: athrow
      //   1953: astore 35
      //   1955: aload 35
      //   1957: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   1960: goto -10 -> 1950
      //   1963: astore 12
      //   1965: aload 12
      //   1967: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   1970: aload 7
      //   1972: ifnull -441 -> 1531
      //   1975: aload 7
      //   1977: invokevirtual 281	java/io/FileOutputStream:close	()V
      //   1980: goto -449 -> 1531
      //   1983: astore 13
      //   1985: aload 13
      //   1987: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   1990: goto -459 -> 1531
      //   1993: astore 10
      //   1995: aload 7
      //   1997: ifnull +8 -> 2005
      //   2000: aload 7
      //   2002: invokevirtual 281	java/io/FileOutputStream:close	()V
      //   2005: aload 10
      //   2007: athrow
      //   2008: astore 11
      //   2010: aload 11
      //   2012: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   2015: goto -10 -> 2005
      //   2018: astore 9
      //   2020: aload 9
      //   2022: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   2025: goto -494 -> 1531
      //   2028: astore 61
      //   2030: aload 61
      //   2032: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   2035: aload 7
      //   2037: ifnull -1552 -> 485
      //   2040: aload 7
      //   2042: invokevirtual 281	java/io/FileOutputStream:close	()V
      //   2045: return
      //   2046: astore 62
      //   2048: aload 62
      //   2050: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   2053: return
      //   2054: astore 59
      //   2056: aload 7
      //   2058: ifnull +8 -> 2066
      //   2061: aload 7
      //   2063: invokevirtual 281	java/io/FileOutputStream:close	()V
      //   2066: aload 59
      //   2068: athrow
      //   2069: astore 60
      //   2071: aload 60
      //   2073: invokevirtual 353	java/io/IOException:printStackTrace	()V
      //   2076: goto -10 -> 2066
      //   2079: astore 6
      //   2081: aconst_null
      //   2082: astore 7
      //   2084: aconst_null
      //   2085: astore 8
      //   2087: goto -576 -> 1511
      //   2090: astore 6
      //   2092: aload 89
      //   2094: astore 7
      //   2096: aconst_null
      //   2097: astore 8
      //   2099: goto -588 -> 1511
      //   2102: astore 6
      //   2104: aconst_null
      //   2105: astore 8
      //   2107: goto -596 -> 1511
      //   2110: astore 6
      //   2112: goto -601 -> 1511
      //   2115: astore 32
      //   2117: aload 89
      //   2119: astore 7
      //   2121: aconst_null
      //   2122: astore 8
      //   2124: goto -257 -> 1867
      //   2127: astore 32
      //   2129: aconst_null
      //   2130: astore 8
      //   2132: goto -265 -> 1867
      //   2135: astore 32
      //   2137: goto -270 -> 1867
      //   2140: astore_2
      //   2141: aload_2
      //   2142: astore_3
      //   2143: aconst_null
      //   2144: astore 4
      //   2146: aconst_null
      //   2147: astore 5
      //   2149: goto -1373 -> 776
      //   2152: astore 90
      //   2154: aload 89
      //   2156: astore 4
      //   2158: aload 90
      //   2160: astore_3
      //   2161: aconst_null
      //   2162: astore 5
      //   2164: goto -1388 -> 776
      //   2167: astore 41
      //   2169: aload 41
      //   2171: astore_3
      //   2172: aload 7
      //   2174: astore 4
      //   2176: aconst_null
      //   2177: astore 5
      //   2179: goto -1403 -> 776
      //   2182: iload 81
      //   2184: istore 82
      //   2186: goto -1569 -> 617
      //   2189: iconst_1
      //   2190: istore 50
      //   2192: goto -1799 -> 393
      //   2195: iload 80
      //   2197: istore 48
      //   2199: goto -1830 -> 369
      //
      // Exception table:
      //   from	to	target	type
      //   639	680	709	android/os/DeadObjectException
      //   243	292	763	java/io/IOException
      //   292	299	763	java/io/IOException
      //   302	369	763	java/io/IOException
      //   369	385	763	java/io/IOException
      //   393	465	763	java/io/IOException
      //   536	558	763	java/io/IOException
      //   572	582	763	java/io/IOException
      //   588	606	763	java/io/IOException
      //   617	639	763	java/io/IOException
      //   639	680	763	java/io/IOException
      //   680	706	763	java/io/IOException
      //   711	760	763	java/io/IOException
      //   978	1024	763	java/io/IOException
      //   1109	1192	763	java/io/IOException
      //   1272	1362	763	java/io/IOException
      //   1362	1427	763	java/io/IOException
      //   905	910	911	java/io/IOException
      //   470	475	919	java/io/IOException
      //   931	936	937	java/io/IOException
      //   470	475	945	finally
      //   921	926	945	finally
      //   952	957	960	java/io/IOException
      //   480	485	970	java/io/IOException
      //   1039	1044	1045	java/io/IOException
      //   1029	1034	1053	java/io/IOException
      //   1065	1070	1071	java/io/IOException
      //   1029	1034	1079	finally
      //   1055	1060	1079	finally
      //   1086	1091	1094	java/io/IOException
      //   1207	1212	1213	java/io/IOException
      //   1197	1202	1221	java/io/IOException
      //   1233	1238	1239	java/io/IOException
      //   1197	1202	1247	finally
      //   1223	1228	1247	finally
      //   1254	1259	1262	java/io/IOException
      //   1442	1447	1448	java/io/IOException
      //   821	855	1456	android/os/RemoteException
      //   776	801	1501	finally
      //   807	816	1501	finally
      //   855	890	1501	finally
      //   1463	1498	1501	finally
      //   1536	1574	1501	finally
      //   1574	1600	1501	finally
      //   1600	1630	1501	finally
      //   1635	1652	1501	finally
      //   1655	1660	1501	finally
      //   1663	1805	1501	finally
      //   821	855	1534	finally
      //   1458	1463	1534	finally
      //   1600	1630	1633	java/lang/InterruptedException
      //   1655	1660	1633	java/lang/InterruptedException
      //   1663	1805	1633	java/lang/InterruptedException
      //   895	900	1808	java/io/IOException
      //   1820	1825	1826	java/io/IOException
      //   895	900	1834	finally
      //   1810	1815	1834	finally
      //   1841	1846	1849	java/io/IOException
      //   0	63	1859	android/os/RemoteException
      //   486	514	1859	android/os/RemoteException
      //   1898	1903	1904	java/io/IOException
      //   1888	1893	1912	java/io/IOException
      //   1924	1929	1930	java/io/IOException
      //   1888	1893	1938	finally
      //   1914	1919	1938	finally
      //   1945	1950	1953	java/io/IOException
      //   1516	1521	1963	java/io/IOException
      //   1975	1980	1983	java/io/IOException
      //   1516	1521	1993	finally
      //   1965	1970	1993	finally
      //   2000	2005	2008	java/io/IOException
      //   1526	1531	2018	java/io/IOException
      //   1432	1437	2028	java/io/IOException
      //   2040	2045	2046	java/io/IOException
      //   1432	1437	2054	finally
      //   2030	2035	2054	finally
      //   2061	2066	2069	java/io/IOException
      //   0	63	2079	finally
      //   486	514	2079	finally
      //   514	525	2090	finally
      //   67	223	2102	finally
      //   223	235	2102	finally
      //   243	292	2110	finally
      //   292	299	2110	finally
      //   302	369	2110	finally
      //   369	385	2110	finally
      //   393	465	2110	finally
      //   536	558	2110	finally
      //   572	582	2110	finally
      //   588	606	2110	finally
      //   617	639	2110	finally
      //   639	680	2110	finally
      //   680	706	2110	finally
      //   711	760	2110	finally
      //   978	1024	2110	finally
      //   1109	1192	2110	finally
      //   1272	1362	2110	finally
      //   1362	1427	2110	finally
      //   1867	1883	2110	finally
      //   514	525	2115	android/os/RemoteException
      //   67	223	2127	android/os/RemoteException
      //   223	235	2127	android/os/RemoteException
      //   243	292	2135	android/os/RemoteException
      //   292	299	2135	android/os/RemoteException
      //   302	369	2135	android/os/RemoteException
      //   369	385	2135	android/os/RemoteException
      //   393	465	2135	android/os/RemoteException
      //   536	558	2135	android/os/RemoteException
      //   572	582	2135	android/os/RemoteException
      //   588	606	2135	android/os/RemoteException
      //   617	639	2135	android/os/RemoteException
      //   639	680	2135	android/os/RemoteException
      //   680	706	2135	android/os/RemoteException
      //   711	760	2135	android/os/RemoteException
      //   978	1024	2135	android/os/RemoteException
      //   1109	1192	2135	android/os/RemoteException
      //   1272	1362	2135	android/os/RemoteException
      //   1362	1427	2135	android/os/RemoteException
      //   0	63	2140	java/io/IOException
      //   486	514	2140	java/io/IOException
      //   514	525	2152	java/io/IOException
      //   67	223	2167	java/io/IOException
      //   223	235	2167	java/io/IOException
    }

    public void a(int paramInt)
    {
      this.g = paramInt;
    }

    public void run()
    {
      this.d = 0;
      try
      {
        if (this.i != null)
          this.i.a(this.h);
        boolean bool1 = this.e < 0L;
        boolean bool2 = false;
        if (bool1)
          bool2 = true;
        a(bool2);
        if (DownloadingService.b().size() <= 0)
          DownloadingService.this.stopSelf();
        return;
      }
      catch (Exception localException)
      {
        localException.printStackTrace();
      }
    }
  }

  class c extends Handler
  {
    public void handleMessage(Message paramMessage)
    {
      Log.c(DownloadingService.a(), "IncomingHandler(msg.what:" + paramMessage.what + " msg.arg1:" + paramMessage.arg1 + " msg.arg2:" + paramMessage.arg2 + " msg.replyTo:" + paramMessage.replyTo);
      switch (paramMessage.what)
      {
      default:
        super.handleMessage(paramMessage);
        return;
      case 4:
      }
      Bundle localBundle = paramMessage.getData();
      Log.c(DownloadingService.a(), "IncomingHandler(msg.getData():" + localBundle);
      a.a locala = a.a.a(localBundle);
      if (DownloadingService.b(locala))
      {
        Log.a(DownloadingService.a(), locala.b + " is already in downloading list. ");
        Toast.makeText(DownloadingService.a(DownloadingService.this), com.umeng.common.c.a(DownloadingService.a(DownloadingService.this)).f("umeng_common_action_info_exist"), 0).show();
        return;
      }
      DownloadingService.b().put(locala, paramMessage.replyTo);
      DownloadingService.a(DownloadingService.this, locala);
    }
  }

  private static class d
  {
    DownloadingService.b a;
    Notification b;
    int c;
    int d;
    a.a e;
    long[] f = new long[3];

    public d(a.a parama, int paramInt)
    {
      this.c = paramInt;
      this.e = parama;
    }

    public void a()
    {
      DownloadingService.c().put(Integer.valueOf(this.c), this);
    }

    public void b()
    {
      if (!(DownloadingService.c().containsKey(Integer.valueOf(this.c))))
        return;
      DownloadingService.c().remove(Integer.valueOf(this.c));
    }
  }
}

/* Location:           H:\360云盘\lewa_explorer_3.0\bin\FileApp_orig_dex2jar.jar
 * Qualified Name:     com.umeng.common.net.DownloadingService
 * JD-Core Version:    0.5.2
 */